package com.ahao.abstraction;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.KeyEvent;

/** @noinspection unused*/
public interface ILifeCycle {

    void onStart();

    void onPause();

    void onResume();

    void onNewIntent(Intent intent);

    void onStop();

    void onDestroy();

    void onRestart();

    void onConfigurationChanged(Configuration newConfig);

    void onSaveInstanceState(Bundle outState);

    void onActivityResult(int requestCode, int resultCode, Intent data);
    // 退出相关,必接
   
    void onBackPressed();
    // 退出相关,必接

    boolean onKeyDown(int keyCode, KeyEvent event);

    void onRequestPermissionsResult(int requestCode,String[] permissions, int[] grantResults);

}
